import request from '@/utils/request'

// 获取合作商列表
export const getPartnerList = params => request.get('/user-service/partner/search', { params })

// 新增合作商
export const addPartner = data => request.post('/user-service/partner', data)

// 修改合作商
export const modifyPartner = data => request.put(`/user-service/partner/${data.id}`, data)

// 删除合作商
export const delPartner = id => request.delete(`/user-service/partner/${id}`)

// 重置合作商密码
export const resetPassword = id => request.put(`/user-service/partner/resetPwd/${id}`)
